
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>第10节：接收输入 ·  GO语言 web服务器区块链开发工程师就业班课程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="波波">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-codeblock-filename/block.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-navigator/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="变量命名规范.html" />
    
    
    <link rel="prev" href="输出格式.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.shxdledu.cn/single/About-Me" target="_blank" class="custom-link">关于作者</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Chapter1/base.html">
            
                <a href="../Chapter1/base.html">
            
                    
                    第一章：区块链基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../Chapter2/base.html">
            
                <a href="../Chapter2/base.html">
            
                    
                    第二章：初识Go语言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../Chapter2/GO语言介绍.html">
            
                <a href="../Chapter2/GO语言介绍.html">
            
                    
                    第1节：GO语言介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../Chapter2/环境安装.html">
            
                <a href="../Chapter2/环境安装.html">
            
                    
                    第2节：环境安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../Chapter2/第一个GO程序.html">
            
                <a href="../Chapter2/第一个GO程序.html">
            
                    
                    第3节：第一个GO程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../Chapter2/学习资料.html">
            
                <a href="../Chapter2/学习资料.html">
            
                    
                    第4节：学习资料
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../Chapter3/注释.html">
            
                <a href="../Chapter3/注释.html">
            
                    
                    第三章：注释
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../Chapter3/注释作用.html">
            
                <a href="../Chapter3/注释作用.html">
            
                    
                    第1节：注释作用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../Chapter3/注释分类.html">
            
                <a href="../Chapter3/注释分类.html">
            
                    
                    第2节：注释分类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../Chapter3/学习资料.html">
            
                <a href="../Chapter3/学习资料.html">
            
                    
                    第3节：学习资料
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="变量.html">
            
                <a href="变量.html">
            
                    
                    第四章：变量
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="什么叫变量.html">
            
                <a href="什么叫变量.html">
            
                    
                    第1节：什么叫变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="变量类型.html">
            
                <a href="变量类型.html">
            
                    
                    第2节：变量类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="变量声明.html">
            
                <a href="变量声明.html">
            
                    
                    第3节：变量声明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="变量初始化.html">
            
                <a href="变量初始化.html">
            
                    
                    第4节：变量初始化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="变量赋值.html">
            
                <a href="变量赋值.html">
            
                    
                    第5节：变量赋值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="自动推导类型.html">
            
                <a href="自动推导类型.html">
            
                    
                    第6节：自动推导类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="多重赋值匿名变量.html">
            
                <a href="多重赋值匿名变量.html">
            
                    
                    第7节：多重赋值匿名变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="数据置换.html">
            
                <a href="数据置换.html">
            
                    
                    第8节：数据置换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="输出格式.html">
            
                <a href="输出格式.html">
            
                    
                    第9节：输出格式
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.10" data-path="接收输入.html">
            
                <a href="接收输入.html">
            
                    
                    第10节：接收输入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="变量命名规范.html">
            
                <a href="变量命名规范.html">
            
                    
                    第11节：变量命名规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="变量命名规范.html">
            
                <a href="变量命名规范.html">
            
                    
                    第12节：变量命名规范
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Chapter5/基础数据类型.html">
            
                <a href="../Chapter5/基础数据类型.html">
            
                    
                    第五章：基础数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Chapter6/常量.html">
            
                <a href="../Chapter6/常量.html">
            
                    
                    第六章：常量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../Chapter7/运算符.html">
            
                <a href="../Chapter7/运算符.html">
            
                    
                    第七章：运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../Chapter8/流程控制.html">
            
                <a href="../Chapter8/流程控制.html">
            
                    
                    第八章：流程控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../Chapter9/函数.html">
            
                <a href="../Chapter9/函数.html">
            
                    
                    第九章：函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../Chapter10/工程管理.html">
            
                <a href="../Chapter10/工程管理.html">
            
                    
                    第十章：工程管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../Chapter11/数据格式.html">
            
                <a href="../Chapter11/数据格式.html">
            
                    
                    第十一章：数据格式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../Chapter12/面向对象.html">
            
                <a href="../Chapter12/面向对象.html">
            
                    
                    第十二章：面向对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../Chapter13/异常处理.html">
            
                <a href="../Chapter13/异常处理.html">
            
                    
                    第十三章：异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../Chapter14/文本文件处理.html">
            
                <a href="../Chapter14/文本文件处理.html">
            
                    
                    第十四章：文本文件处理
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >第10节：接收输入</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x7B2C;10&#x8282;&#xFF1A;&#x63A5;&#x6536;&#x8F93;&#x5165;">&#x7B2C;10&#x8282;&#xFF1A;&#x63A5;&#x6536;&#x8F93;&#x5165;</h1>
<h2 id="10&#xFF1A;&#x63A5;&#x6536;&#x8F93;&#x5165;">1. 10&#xFF1A;&#x63A5;&#x6536;&#x8F93;&#x5165;</h2>
<p>&#x524D;&#x9762;&#x6211;&#x4EEC;&#x6240;&#x5199;&#x7684;&#x6240;&#x6709;&#x7684;&#x7A0B;&#x5E8F;&#xFF0C;&#x90FD;&#x662F;&#x76F4;&#x63A5;&#x7ED9;&#x53D8;&#x91CF;&#x8D4B;&#x503C;&#xFF0C;&#x4F46;&#x662F;&#x5F88;&#x591A;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x6211;&#x4EEC;&#x5E0C;&#x671B;&#x7528;&#x6237;&#x901A;&#x8FC7;&#x952E;&#x76D8;&#x8F93;&#x5165;&#x4E00;&#x4E2A;&#x6570;&#x503C;&#xFF0C;&#x5B58;&#x50A8;&#x5230;&#x67D0;&#x4E2A;&#x53D8;&#x91CF;&#x4E2D;&#xFF0C;&#x7136;&#x540E;&#x5C06;&#x8BE5;&#x53D8;&#x91CF;&#x7684;&#x503C;&#x53D6;&#x51FA;&#x6765;&#xFF0C;&#x8FDB;&#x884C;&#x64CD;&#x4F5C;&#x3002;&#x6211;&#x4EEC;&#x65E5;&#x5E38;&#x751F;&#x6D3B;&#x4E2D;&#x4E5F;&#x7ECF;&#x5E38;&#x7528;&#x5230;&#x8F93;&#x5165;&#x7684;&#x573A;&#x666F;:
<img src="https://leanote.com/api/file/getImage?fileId=5da35bbaab644167210004b3" alt="title">
&#x54B1;&#x4EEC;&#x5728;&#x94F6;&#x884C;ATM&#x673A;&#x5668;&#x524D;&#x53D6;&#x94B1;&#x65F6;&#xFF0C;&#x80AF;&#x5B9A;&#x9700;&#x8981;&#x8F93;&#x5165;&#x5BC6;&#x7801;&#xFF0C;&#x5BF9;&#x4E0D;&#xFF1F;
&#x90A3;&#x4E48;&#x600E;&#x6837;&#x624D;&#x80FD;&#x8BA9;&#x7A0B;&#x5E8F;&#x77E5;&#x9053;&#x54B1;&#x4EEC;&#x521A;&#x521A;&#x8F93;&#x5165;&#x7684;&#x662F;&#x4EC0;&#x4E48;&#x5462;&#xFF1F;&#xFF1F;
&#x5927;&#x5BB6;&#x5E94;&#x8BE5;&#x77E5;&#x9053;&#x4E86;&#xFF0C;&#x5982;&#x679C;&#x8981;&#x5B8C;&#x6210;ATM&#x673A;&#x53D6;&#x94B1;&#x8FD9;&#x4EF6;&#x4E8B;&#x60C5;&#xFF0C;&#x9700;&#x8981;&#x5148;&#x4ECE;&#x952E;&#x76D8;&#x4E2D;&#x8F93;&#x5165;&#x4E00;&#x4E2A;&#x6570;&#x636E;&#xFF0C;&#x7136;&#x540E;&#x7528;&#x4E00;&#x4E2A;&#x53D8;&#x91CF;&#x6765;&#x4FDD;&#x5B58;&#xFF0C;&#x662F;&#x4E0D;&#x662F;&#x5F88;&#x597D;&#x7406;&#x89E3;&#x554A;!
&#x90A3;&#x4E48;&#x6211;&#x4EEC;GO&#x8BED;&#x8A00;&#x600E;&#x6837;&#x63A5;&#x6536;&#x7528;&#x6237;&#x7684;&#x952E;&#x76D8;&#x8F93;&#x5165;&#x5462;&#xFF1F;&#x5982;&#x4E0B;&#xFF1A;
<img src="https://leanote.com/api/file/getImage?fileId=5da35bbfab6441691e000487" alt="title"></p>
<p>&#x5728;GO&#x4E2D;&#x6211;&#x4EEC;&#x7528;&#x5230;&#x4E86;&#x201C;fmt&#x201D;&#x8FD9;&#x4E2A;&#x5305;&#x4E2D;&#x7684;Scanf()&#x51FD;&#x6570;&#x6765;&#x63A5;&#x6536;&#x7528;&#x6237;&#x952E;&#x76D8;&#x8F93;&#x5165;&#x7684;&#x6570;&#x636E;&#x3002;&#x5F53;&#x7A0B;&#x5E8F;&#x6267;&#x884C;&#x5230;Scanf()&#x51FD;&#x6570;&#x540E;&#xFF0C;&#x4F1A;&#x505C;&#x6B62;&#x5F80;&#x4E0B;&#x6267;&#x884C;&#xFF0C;&#x7B49;&#x5F85;&#x7528;&#x6237;&#x7684;&#x8F93;&#x5165;&#xFF0C;&#x8F93;&#x5165;&#x5B8C;&#x6210;&#x540E;&#x7A0B;&#x5E8F;&#x7EE7;&#x7EED;&#x5F80;&#x4E0B;&#x6267;&#x884C;&#x3002;&#x5728;&#x8FD9;&#x91CC;&#x91CD;&#x70B9;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;Scanf()&#x51FD;&#x6570;&#x7684;&#x4E66;&#x5199;&#x683C;&#x5F0F;&#xFF0C;&#x9996;&#x5148;&#x4E5F;&#x8981;&#x7528;&#x201C;%d&#x201D;,&#x6765;&#x8868;&#x793A;&#x8F93;&#x5165;&#x7684;&#x662F;&#x4E00;&#x4E2A;&#x6574;&#x6570;&#xFF0C;&#x8F93;&#x5165;&#x5B8C;&#x6574;&#x6570;&#x540E;&#x5B58;&#x50A8;&#x5230;&#x53D8;&#x91CF;age&#x4E2D;&#xFF0C;&#x6CE8;&#x610F;&#x8FD9;&#x91CC;age&#x53D8;&#x91CF;&#x524D;&#x9762;&#x4E00;&#x5B9A;&#x8981;&#x52A0;&#x4E0A;&#x201C;&amp;&#x201D;&#x7B26;&#x53F7;&#xFF0C;&#x8868;&#x793A;&#x83B7;&#x53D6;&#x5185;&#x5B58;&#x5355;&#x5143;&#x7684;&#x5730;&#x5740;&#xFF08;&#x524D;&#x9762;&#x6211;&#x4EEC;&#x8BF4;&#x7684;&#x5185;&#x5B58;&#x5B58;&#x50A8;&#x533A;&#x57DF;&#x7684;&#x7F16;&#x53F7;&#xFF09;&#xFF0C;&#x7136;&#x540E;&#x624D;&#x80FD;&#x591F;&#x5B58;&#x50A8;&#x3002;
&#x8FD8;&#x6709;&#x53E6;&#x5916;&#x4E00;&#x79CD;&#x83B7;&#x53D6;&#x7528;&#x6237;&#x8F93;&#x5165;&#x6570;&#x636E;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x5982;&#x4E0B;&#xFF1A;
<img src="https://leanote.com/api/file/getImage?fileId=5da35bc7ab6441691e000488" alt="title">
&#x901A;&#x8FC7;Scan&#x51FD;&#x6570;&#x63A5;&#x6536;&#x7528;&#x6237;&#x8F93;&#x5165;&#xFF0C;&#x8FD9;&#x65F6;&#x53EF;&#x4EE5;&#x7701;&#x7565;&#x6389;%d,&#x8FD9;&#x79CD;&#x5199;&#x6CD5;&#x66F4;&#x7B80;&#x5355;&#x3002;</p>
<h2 id="11_&#x53D8;&#x91CF;&#x547D;&#x540D;&#x89C4;&#x8303;">2. 11.&#x53D8;&#x91CF;&#x547D;&#x540D;&#x89C4;&#x8303;</h2>
<p>&#x5728;&#x6211;&#x4EEC;&#x524D;&#x9762;&#x7684;&#x7F16;&#x7A0B;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x5B9A;&#x4E49;&#x53D8;&#x91CF;&#x65F6;&#x90FD;&#x662F;&#x968F;&#x610F;&#x8FDB;&#x884C;&#x547D;&#x540D;&#xFF0C;&#x4F46;&#x662F;&#x5728;GO&#x8BED;&#x8A00;&#x4E2D;&#xFF0C;&#x5BF9;&#x53D8;&#x91CF;&#x7684;&#x547D;&#x540D;&#x6709;&#x4E00;&#x4E9B;&#x89C4;&#x8303;&#x6027;&#x7684;&#x8981;&#x6C42;&#xFF0C;&#x4E0B;&#x9762;&#x6211;&#x4EEC;&#x770B;&#x4E00;&#x4E0B;&#x5177;&#x4F53;&#x7684;&#x8981;&#x6C42;&#x3002;
&#xFF08;1&#xFF09;&#x53D8;&#x91CF;&#x547D;&#x540D;&#x89C4;&#x8303;&#x8981;&#x6C42;
&#x540D;&#x5B57;&#x5FC5;&#x987B;&#x4EE5;&#x4E00;&#x4E2A;&#x5B57;&#x6BCD;&#xFF08;Unicode&#x5B57;&#x6BCD;&#xFF09;&#x6216;&#x4E0B;&#x5212;&#x7EBF;&#x5F00;&#x5934;&#xFF0C;&#x540E;&#x9762;&#x53EF;&#x4EE5;&#x8DDF;&#x4EFB;&#x610F;&#x6570;&#x91CF;&#x7684;&#x5B57;&#x6BCD;&#x3001;&#x6570;&#x5B57;&#x6216;&#x4E0B;&#x5212;&#x7EBF;&#x3002;&#x5927;&#x5199;&#x5B57;&#x6BCD;&#x548C;&#x5C0F;&#x5199;&#x5B57;&#x6BCD;&#x662F;&#x4E0D;&#x540C;&#x7684;&#xFF1A;heapSort&#x548C;Heapsort&#x662F;&#x4E24;&#x4E2A;&#x4E0D;&#x540C;&#x7684;&#x540D;&#x5B57;&#x3002;
&#x9664;&#x4E86;&#x4E0A;&#x9762;&#x63D0;&#x5230;&#x7684;&#x89C4;&#x8303;&#x8981;&#x6C42;&#x4EE5;&#x5916;&#xFF0C;GO&#x8BED;&#x8A00;&#x81EA;&#x5DF1;&#x7279;&#x6709;&#x7684;&#xFF0C;&#x5177;&#x6709;&#x4E00;&#x5B9A;&#x542B;&#x4E49;&#x7684;&#x4E00;&#x4E9B;&#x5B57;&#x7B26;&#xFF0C;&#x4E5F;&#x4E0D;&#x80FD;&#x4F5C;&#x4E3A;&#x53D8;&#x91CF;&#x540D;&#x79F0;&#x3002;&#x4F8B;&#x5982;&#xFF0C;&#x524D;&#x9762;&#x6211;&#x4EEC;&#x63A5;&#x89E6;&#x5230;&#x7684;func, fmt,print&#x7B49;&#x7B49;&#xFF0C;&#x8FD9;&#x4E9B;&#x90FD;&#x662F;GO&#x81EA;&#x5E26;&#x7684;&#xFF0C;&#x5177;&#x6709;&#x7279;&#x6B8A;&#x542B;&#x4E49;&#x7684;&#x5B57;&#x7B26;&#xFF0C;&#x6211;&#x4EEC;&#x79F0;&#x4E3A;&#x5173;&#x952E;&#x5B57;&#x3002;</p>
<pre class="language-"><code>break       default        func         interface        select
case        defer         go           map              struct
chan        else           goto           package          switch
const        fallthrough    if             range            type
continue    for             import        return            var
</code></pre><p>&#x4EE5;&#x4E0A;&#x5173;&#x952E;&#x5B57;&#x90FD;&#x4E0D;&#x80FD;&#x4F5C;&#x4E3A;&#x53D8;&#x91CF;&#x7684;&#x540D;&#x79F0;&#x3002;
&#x6B64;&#x5916;&#xFF0C;&#x8FD8;&#x6709;&#x5927;&#x7EA6;30&#x591A;&#x4E2A;&#x9884;&#x5B9A;&#x4E49;&#x7684;&#x540D;&#x5B57;&#xFF0C;&#x6BD4;&#x5982;int&#x548C;true&#x7B49;</p>
<pre class="language-"><code>true false iota nil

        int int8 int16 int32 int64
        uint uint8 uint16 uint32 uint64 uintptr
        float32 float64 complex128 complex64
        bool byte rune string error

        make len cap new append copy close delete
        complexrealimag
        panic recover
</code></pre><p>&#xFF08;2&#xFF09;&#x89C1;&#x540D;&#x77E5;&#x610F;
&#x8D77;&#x4E00;&#x4E2A;&#x6709;&#x610F;&#x4E49;&#x7684;&#x540D;&#x5B57;&#xFF0C;&#x5C3D;&#x91CF;&#x505A;&#x5230;&#x770B;&#x4E00;&#x773C;&#x5C31;&#x77E5;&#x9053;&#x662F;&#x4EC0;&#x4E48;&#x610F;&#x601D;(&#x63D0;&#x9AD8;&#x4EE3;&#x7801;&#x53EF; &#x8BFB;&#x6027;) &#x6BD4;&#x5982;: &#x540D;&#x5B57; &#x5C31;&#x5B9A;&#x4E49;&#x4E3A; name , &#x5B9A;&#x4E49;&#x5B66;&#x751F; &#x7528; student</p>
<p>(4)&#x9A7C;&#x5CF0;&#x547D;&#x540D;&#x6CD5;
<img src="https://leanote.com/api/file/getImage?fileId=5da35c34ab6441691e000489" alt="title">
&#x5C0F;&#x9A7C;&#x5CF0;&#x5F0F;&#x547D;&#x540D;&#x6CD5;&#xFF08;lower camel case&#xFF09;&#xFF1A; &#x7B2C;&#x4E00;&#x4E2A;&#x5355;&#x8BCD;&#x4EE5;&#x5C0F;&#x5199;&#x5B57;&#x6BCD;&#x5F00;&#x59CB;&#xFF1B;&#x7B2C;&#x4E8C;&#x4E2A;&#x5355;&#x8BCD;&#x7684;&#x9996;&#x5B57;&#x6BCD;&#x5927;&#x5199;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;myName&#x3001;aDog
&#x5927;&#x9A7C;&#x5CF0;&#x5F0F;&#x547D;&#x540D;&#x6CD5;&#xFF08;upper camel case&#xFF09;&#xFF1A; &#x6BCF;&#x4E00;&#x4E2A;&#x5355;&#x5B57;&#x7684;&#x9996;&#x5B57;&#x6BCD;&#x90FD;&#x91C7;&#x7528;&#x5927;&#x5199;&#x5B57;&#x6BCD;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;FirstName&#x3001;LastName
&#x4E0D;&#x8FC7;&#x5728;&#x7A0B;&#x5E8F;&#x5458;&#x4E2D;&#x8FD8;&#x6709;&#x4E00;&#x79CD;&#x547D;&#x540D;&#x6CD5;&#x6BD4;&#x8F83;&#x6D41;&#x884C;&#xFF0C;&#x5C31;&#x662F;&#x7528;&#x4E0B;&#x5212;&#x7EBF;&#x201C;_&#x201D;&#x6765;&#x8FDE;&#x63A5;&#x6240;&#x6709;&#x7684;&#x5355;&#x8BCD;&#xFF0C;&#x6BD4;&#x5982;send_buf</p>
<hr>
<pre class="language-"><code>// 08
package main

func main() {
    //&#x6807;&#x8BC6;&#x7B26;&#x547D;&#x540D;&#x89C4;&#x5219;
    /*
    1&#x3001;&#x5141;&#x8BB8;&#x4F7F;&#x7528;&#x5B57;&#x6BCD; &#x6570;&#x5B57; &#x4E0B;&#x5212;&#x7EBF;
    2&#x3001;&#x4E0D;&#x5141;&#x8BB8;&#x4F7F;&#x7528;go&#x7CFB;&#x7EDF;&#x5173;&#x952E;
    3&#x3001;&#x4E0D;&#x5141;&#x8BB8;&#x4F7F;&#x7528;&#x6570;&#x5B57;&#x5F00;&#x5934;
    4&#x3001;&#x533A;&#x5206;&#x5927;&#x5C0F;&#x5199;
    5&#x3001;&#x89C1;&#x540D;&#x77E5;&#x4E49;
     */

     //&#x5927;&#x9A7C;&#x5CF0;&#x547D;&#x540D;
    //RoleLv
    //&#x5C0F;&#x9A7C;&#x5CF0;&#x547D;&#x540D;
    //roleLv
    //linux&#x547D;&#x540D;
    //role_lv


}
</code></pre><hr>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; shxdledu.cn 2018 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2019-11-06 00:40:11
</span></footer><div id="anchors-navbar"><i class="fa fa-anchor"></i><ul><p><a href="#&#x7B2C;10&#x8282;&#xFF1A;&#x63A5;&#x6536;&#x8F93;&#x5165;">&#x7B2C;10&#x8282;&#xFF1A;&#x63A5;&#x6536;&#x8F93;&#x5165;</a></p><li><a href="#10&#xFF1A;&#x63A5;&#x6536;&#x8F93;&#x5165;">1. 10&#xFF1A;&#x63A5;&#x6536;&#x8F93;&#x5165;</a></li><li><a href="#11_&#x53D8;&#x91CF;&#x547D;&#x540D;&#x89C4;&#x8303;">2. 11.&#x53D8;&#x91CF;&#x547D;&#x540D;&#x89C4;&#x8303;</a></li></ul></div><a href="#10&#xFF1A;&#x63A5;&#x6536;&#x8F93;&#x5165;" id="goTop"><i class="fa fa-arrow-up"></i></a>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="输出格式.html" class="navigation navigation-prev " aria-label="Previous page: 第9节：输出格式">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="变量命名规范.html" class="navigation navigation-next " aria-label="Next page: 第11节：变量命名规范">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"第10节：接收输入","level":"1.5.10","depth":2,"next":{"title":"第11节：变量命名规范","level":"1.5.11","depth":2,"path":"Chapter4/变量命名规范.md","ref":"Chapter4/变量命名规范.md","articles":[]},"previous":{"title":"第9节：输出格式","level":"1.5.9","depth":2,"path":"Chapter4/输出格式.md","ref":"Chapter4/输出格式.md","articles":[]},"dir":"ltr"},"config":{"plugins":["toggle-chapters","sectionx","tbfed-pagefooter","include-codeblock","splitter","mermaid","codeblock-filename","prism","-highlight","simple-page-toc","navigator"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy shxdledu.cn 2018","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"splitter":{},"search":{},"mermaid":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sectionx":{},"codeblock-filename":{},"navigator":{},"include-codeblock":{"check":false,"edit":false,"fixlang":false,"lang":"","template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":true,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"波波","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":" GO语言 web服务器区块链开发工程师就业班课程","language":"zh-hans","links":{"sidebar":{"关于作者":"http://www.shxdledu.cn/single/About-Me"}},"gitbook":"*","description":" GO语言 web服务器区块链开发工程师就业班课程"},"file":{"path":"Chapter4/接收输入.md","mtime":"2019-11-05T16:40:11.666Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-11-06T17:01:48.340Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

